const http=require('http');
const querystring=require('querystring');
http.createServer(function(req,res){

	if(req.url.indexOf('?')!=-1){
	 var GET={user:'blur',pass:'123456'};
	var arr=req.url.split("?");
	var url=arr[0];
    
    GET=querystring.parse(arr[1]);
 
     console.log(url,GET);
     res.write('222');
}else{
	 console.log(req.url);
     res.write('222');

} 

   
    
   
     res.end();
}).listen(8080);